import http from '@/utils/request'
/**
 * 获取首页的推荐品牌
 * @param {Number} limit 显示的记录数
 * @returns
 */
export const homeBrandsApi = limit => {
    return http('/home/brand', 'get', {
        limit
    })
}

/**
 * 获取广告图
 * @returns Promise
 */
export const findBanner = () => {
    return http('/home/banner', 'get')
}

/**
 * 获取新鲜好物
 * @returns
 */
export const findNew = () => {
    return http('/home/new', 'get')
}

/**
 * 获取人气推荐
 * @returns
 */
export const findHot = () => {
    return http('home/hot', 'get')
}

/**
 *  获取首页的推荐商品
 * @returns
 */
export const findGoods = () => {
    return http('home/goods', 'get')
}

/**
 * 获取最新专题数据
 * @returns
 */
export const findSpecial = () => {
    return http('home/special', 'get')
}